Xbasic

*WORD_REMOVE Function

Syntax

New_String as C = *WORD_REMOVE(text as c,word as n,separator as c[,nwords as n])

Arguments

New_String

The modified text with word(s) removed.

text

The original unmodified text.

word

The number of the first word to remove. Numeric

separator

The word separator character(s). Character

nwords

Optional. Default = 1. The number of words to remove. Numeric

Description

Remove word(s) from text at position- words delimited by separator.

Discussion

The *WORD_REMOVE() function removes one or more words from a list.

Example

? *word_remove("one two three four", 3, " ")
= "one two four"

See Also